{% extends "base.html" %}
{% block content %}
<div class="container mt-4">
    <h2>我的通知</h2>
    {% for notification in notifications %}
    <div class="card mb-3 {% if not notification.is_read %}border-primary{% endif %}">
        <div class="card-header">{{ notification.title }}</div>
        <div class="card-body">
            <p>{{ notification.message }}</p>
            <small class="text-muted">{{ notification.created_at|date:"Y-m-d H:i" }}</small>
        </div>
    </div>
    {% empty %}
    <p>暂无通知</p>
    {% endfor %}
</div>
{% endblock %}
